package me.wangqu.weiyouqu.web.rest.business.service;

import me.wangqu.weiyouqu.web.rest.business.dao.JpushDao;
import me.wangqu.weiyouqu.web.rest.business.model.BaseModel;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by joln on 2016/7/26.
 */
@Service
public class JpushService {

    private final Logger log = LoggerFactory.getLogger(JpushService.class);

    @Autowired
    private JpushDao jpushDao;

    /**
     * 获取极光推送数据
     *
     * @return
     */
    public BaseModel setJpush(Integer id) {
        try {
            return jpushDao.getJpushData(id);

        } catch (Exception e) {
            log.debug("deubg", e.getMessage());
        }
        return null;
    }
}
